// 自动生成模板WorkflowLog
package system1

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 审批历史 结构体  WorkflowLog
type WorkflowLog struct {
	global.GVA_MODEL
	UserId         *int   `json:"userId" form:"userId" gorm:"column:user_id;comment:;"`                          //操作人Id
	Action         string `json:"action" form:"action" gorm:"column:action;comment:;"`                           //审批动作
	Comment        string `json:"comment" form:"comment" gorm:"column:comment;comment:;"`                        //审批备注
	WorkflowDataId uint   `json:"workflowDataId" form:"workflowDataId" gorm:"column:workflow_data_id;comment:;"` //申请ID
	CreatedBy      uint   `gorm:"column:created_by;comment:创建者"`
	UpdatedBy      uint   `gorm:"column:updated_by;comment:更新者"`
	DeletedBy      uint   `gorm:"column:deleted_by;comment:删除者"`
}

// TableName 审批历史 WorkflowLog自定义表名 workflow_log_struct
func (WorkflowLog) TableName() string {
	return "workflow_log"
}
